﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.
// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME	    : FI.Net Application Framework
// COMPONENT ID	    : FI.Core
// COMPONENT DESC   : FI.Net Core Foundation
//
// CREATED DATE/BY  : 18 Aug 2018 / Tian Mi
//
// REVISION HISTORY :	
// DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================
#endregion

using FI.Core.Utilities;
using System.Collections.Generic;
using System.Reflection;

namespace FI.Core.IoC
{
    internal interface IAssemblyResolver
    {
        IEnumerable<Assembly> GetAssemblies();
    }

    internal class DefaultAssemblyResolver : IAssemblyResolver
    {
        public IEnumerable<Assembly> Assemblies { get; private set; }
        public DefaultAssemblyResolver(IEnumerable<Assembly> assemblies)
        {
            Guard.ArgumentNotNull(assemblies, "assemblies");
            this.Assemblies = assemblies;
        }

        public IEnumerable<Assembly> GetAssemblies()
        {
            return this.Assemblies;
        }
    }
}
